<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>水仙花数6</title>
</head>
<body>
    <script>
        for(var i = 100;i<1000;i++){
            var a = parseInt(i/100);
            var b = parseInt(i/10)%10;
            var c = i%10;
            if(a*a*a + b*b*b + c*c*c==i){
                document.write(i+"是水仙花数<br>");
            }
        }
    </script>
</body>
</html>